import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/psm/staff/list',
    method: 'get',
    params
  })
}
export function del(params) {
  return request({
    url: '/psm/staff/del',
    method: 'get',
    params
  })
}
export function add(data) {
  return request({
    url: '/psm/staff/add',
    method: 'post',
    data
  })
}
export function edit(data) {
  return request({
    url: '/psm/staff/edit',
    method: 'post',
    data
  })
}
export function findList(params) {
  return request({
    url: '/psm/staff/selectType',
    method: 'get',
    params
  })
}
export function delBatch(params) {
  return request({
    url: '/psm/staff/delBatch',
    method: 'get',
    params
  })
}
export function upload(data) {
  return request({
    url: '/psm/staff/upload/excel',
    method: 'post',
    data
  })
}
export function download() {
  return axios({
    url: '/psm/staff/download',
    method: 'get',
    responseType: 'blob'
  })
}

